<div class="layuimini-container">
    <form id="app-form" class="layui-form layuimini-form">
        <div class="layui-form-item">
            <label class="layui-form-label">分类</label>
            <div class="layui-input-block">
                <select name="type" lay-verify="required" >
                    <option value="1">线上</option>
                    <option value="2">线下</option>
                </select>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">借阅类型</label>
            <div class="layui-input-block">
                <select name="status" lay-verify="required" >
                    {if $data['types'] ==2 }
                    <option value="1" selected>文件</option>
                    {else:}
                    <option value="1" >文件</option>
                    {/if}
                    {if $data['types'] ==1 }
                    <option value="2" selected>案卷</option>
                    {else:}
                    <option value="2">案卷</option>
                    {/if}

                </select>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">文件档号</label>
            <div class="layui-input-block">
                <input type="text" name="reference" class="layui-input" lay-verify="required" placeholder="请输入文件档号" value="{$data.reference}-{$data.sort}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">文件名称</label>
            <div class="layui-input-block">
                <input type="text" name="filename" class="layui-input" lay-verify="required" placeholder="请输入文件名称" value="{$data.name}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">借阅人</label>
            <div class="layui-input-block">
                <input type="text" name="borrowers" class="layui-input" lay-verify="required" placeholder="请输入借阅人" value="">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">经办人</label>
            <div class="layui-input-block">
                <input type="text" name="handled" class="layui-input" lay-verify="required" placeholder="请输入经办人" value="">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">出借时间</label>
            <div class="layui-input-block">
                <input type="text" name="times" class="layui-input" lay-verify="required" placeholder="请输入出借时间" value="">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">备注</label>
            <div class="layui-input-block">
                <input type="text" name="remark" class="layui-input" lay-verify="required" placeholder="请输入备注" value="">
            </div>
        </div>


        <div class="hr-line"></div>
        <div class="layui-form-item text-center">
            <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit>确认</button>
            <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
        </div>

    </form>
</div>